package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.JhdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface JhdProductService extends BaseService<JhdProductBean> {

	JhdProductBean getJhdProductBeanById(String id) throws Exception;
	
	void removeJhdProductBeanById(String id) throws Exception;
	
	void removeJhdProductBeanByIds(String ids) throws Exception;
	
	JhdProductBean saveJhdProductBean(JhdProductBean crm) throws Exception;
	
	JhdProductBean updateJhdProductBean(JhdProductBean crm) throws Exception;
	
	Page<JhdProductBean>  findJhdProductBeanByCond(JhdProductBean bean,
			Page<JhdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveJhdProductBeanExt(String sql) throws Exception;

	String findJhdProductBeanExtCreate(String tableName) throws Exception;

	String findJhdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findJhdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasJhdProductBeanExtData(String tableName, String id)
			throws Exception;
}